#ifndef __httpvideodown_tactics_h__
#define __httpvideodown_tactics_h__ 1
#include "sys.h"
#include "cJSON.h"
typedef struct httpvideodownTactics{
    char urls[1024*2];
    int downTime;
    int ignoreTime;
    int threads;
    float threshold;
    char businessTag[64];
    char kafkaTopic[64];
    TAILQ_ENTRY(httpvideodownTactics) entry;
}httpvideodownTactics_t;
TAILQ_HEAD(httpvideodownTactics_head, httpvideodownTactics);

typedef struct{
    char *taskId;
    char *version;
    char *kafka_url;
    int count;
    struct httpvideodownTactics_head head;
    cJSON *result;
    pthread_mutex_t mutex;
    pthread_cond_t cond;
}httpvideodown_tactics_t;

void* do_httpvideodown_tactics(void* arg, char *nodeUrl, char *probeId);
#endif